﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductDetail.ascx.cs" Inherits="BestBuy.UserControl.ProductDetail" %>


<style type="text/css">
    .Category
    {
        width:auto; float: left; color: #99370B; font-weight: bold; background: none repeat scroll 0% 0% #FFFFD8; 
        border: 1px solid rgb(236, 212, 138); padding: 3px 7px; width: auto; font-size: 11px;
    }
</style>

<asp:Panel ID="ProductDetailPanel" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <table class="table table-bordered" width="100%">
                <tr>
                    <td width="30%"><asp:Literal ID="litCategory" runat="server" Text="Category"></asp:Literal></td>
                    <td>
                        <asp:Label ID="lbCategory" runat="server" CssClass="Category"></asp:Label>
                        <asp:HiddenField ID="HiddenCategory" runat="server" />
                        <a style="cursor:pointer" onclick="javascript:__doPostBack('ctl00$ctl00$MainContent$MainContent$PostNewListingWizard$sideBarList$ctrl0$sideBarButton','')">Change Category</a>
                    </td>
                </tr>
                <tr>
                    <td> <asp:Literal ID="Literal1" runat="server" Text="Title"></asp:Literal></td>
                    <td> <asp:TextBox ID="txtTitle" runat="server" Width="80%"></asp:TextBox>
                        <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle" 
                            Display="None" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td ><asp:Literal ID="Literal2" runat="server" Text="Keyword"></asp:Literal></td>
                    <td><asp:TextBox ID="txtKeyword" runat="server" Width="80%"></asp:TextBox>
                        <asp:Label ID="Label2" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtKeyword" 
                            Display="None" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="Literal3" runat="server" Text="Description"></asp:Literal></td>
                    <td><asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" 
                            Width="80%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDescription" 
                            Display="None" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                        <asp:Label ID="Label3" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="Literal4" runat="server" Text="Expiry Time"></asp:Literal></td>
                    <td>                        
                        <asp:DropDownList ID="cbExpiryTime" runat="server" Width="150px">
                            <asp:ListItem Value="" Text="Select"></asp:ListItem>
                            <asp:ListItem Value="7" Text="1 Week"></asp:ListItem>
                            <asp:ListItem Value="14" Text="2 Week"></asp:ListItem>
                            <asp:ListItem Value="21" Text="3 Week"></asp:ListItem>
                            <asp:ListItem Value="" Text="--------------------"></asp:ListItem>
                            <asp:ListItem Value="30" Text="1 Month"></asp:ListItem>
                            <asp:ListItem Value="60" Text="2 Month"></asp:ListItem>
                            <asp:ListItem Value="90" Text="3 Month"></asp:ListItem>
                            <asp:ListItem Value="120" Text="4 Month"></asp:ListItem>
                            <asp:ListItem Value="150" Text="5 Month"></asp:ListItem>
                            <asp:ListItem Value="180" Text="6 Month"></asp:ListItem>
                            <asp:ListItem Value="" Text="--------------------"></asp:ListItem>
                            <asp:ListItem Value="365" Text="1 Year"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="cbExpiryTime" 
                            Display="None" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>

                        <asp:Label ID="Label4" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="Literal5" runat="server" Text="Buying Frequency"></asp:Literal></td>
                    <td><asp:DropDownList ID="cbBuyingFrequency" runat="server" Width="150px">
                            <asp:ListItem Value="" Text="Select"></asp:ListItem>
                            <asp:ListItem Value="1" Text="Daily"></asp:ListItem>
                            <asp:ListItem Value="2" Text="One time"></asp:ListItem>
                            <asp:ListItem Value="3" Text="Monthly"></asp:ListItem>
                            <asp:ListItem Value="4" Text="Yearly"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="cbBuyingFrequency" 
                            Display="None" ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                        <asp:Label ID="Label5" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="Literal6" runat="server" Text="Quantity Required"></asp:Literal></td>
                    <td><asp:TextBox runat="server" ID="txtQuantityRequired"></asp:TextBox> 
                    <asp:DropDownList ID="cbQuantityRequired" runat="server" Width="150px" 
                            AppendDataBoundItems="True">
                            <asp:ListItem Text="Select"></asp:ListItem>
                            <asp:ListItem Value="1" Text="Acre"></asp:ListItem>
                            <asp:ListItem Value="2" Text="Bag"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:RegularExpressionValidator  Runat="server" ID="valNumbersOnly"
                            ControlToValidate="txtQuantityRequired" Display="None" 
                            ErrorMessage="Please enter number" 
                            ValidationExpression="(^([1-9]*|\d*\d{1}?\d*)$)" 
                            ValidationGroup="ProductDetailValidations">*</asp:RegularExpressionValidator>
                            
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="Literal7" runat="server" Text="Annual Purchase Volume"></asp:Literal></td>
                    <td> <asp:TextBox runat="server" ID="txtAnnualPurchaseVolume"></asp:TextBox>  
                    <asp:DropDownList ID="cbAnnualPurchaseVolume" runat="server" Width="150px" 
                            AppendDataBoundItems="True">
                            <asp:ListItem Text="Select"></asp:ListItem>
                            <asp:ListItem Value="1" Text="Acre"></asp:ListItem>
                            <asp:ListItem Value="2" Text="Bag"></asp:ListItem>
                        </asp:DropDownList></td>
                    <asp:RegularExpressionValidator  Runat="server" ID="RegularExpressionValidator1"
                            ControlToValidate="txtAnnualPurchaseVolume" Display="None" 
                            ErrorMessage="Please enter number" 
                            ValidationExpression="(^([1-9]*|\d*\d{1}?\d*)$)" 
                            ValidationGroup="ProductDetailValidations">*</asp:RegularExpressionValidator>
                </tr>
                <tr>
                    <td colspan="2">
                        <br />
                        <h2>Add More Infomation</h2>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="Literal8" runat="server" Text="Shipping Terms"></asp:Literal></td>
                    <td><asp:TextBox runat="server" ID="txtShippingTerms"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="Literal9" runat="server" Text="Destination Port"></asp:Literal></td>
                    <td><asp:TextBox runat="server" ID="txtDestinationPort"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top"><asp:Literal ID="Literal10" runat="server" Text="Payment Terms"></asp:Literal></td>
                    <td>
                        <asp:CheckBoxList ID="PaymentCheckBoxList" runat="server" 
                            RepeatDirection="Horizontal">
                            <asp:ListItem Value="1">Paypal</asp:ListItem>
                            <asp:ListItem Value="2">Western Union</asp:ListItem>
                            <asp:ListItem Value="3">Money Gram</asp:ListItem>
                            <asp:ListItem Value="4">T/T</asp:ListItem>
                            <asp:ListItem Value="5">D/P</asp:ListItem>
                            <asp:ListItem Value="6">L/C</asp:ListItem>
                            <asp:ListItem Value="7">Other</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                </tr>
            </table>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                ValidationGroup="ProductDetailValidations" />
            <br />
            
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Panel>